/**
* Copyright (c) 2022 Beijing Jiaotong University
* PhotLab is licensed under [Open Source License].
* You can use this software according to the terms and conditions of the [Open Source License].
* You may obtain a copy of [Open Source License] at: [https://open.source.license/]
* 
* THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
* EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
* MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
* 
* See the [Open Source License] for more details.
* 
* Author: Zhenjie Wei
* Created: Mar. 9, 2023
* Supported by: National Key Research and Development Program of China
*/

@mixin header-right {
    position: relative;
    z-index: 100;
    height: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 100%;
    .pui-switch {
        .pui-switch_content {
            .pui-switch_label {
                font-size: 14px;
            }
        }
    }
    .system-selector {
        height: 28px;
        width: 100%;
        font-size: 14px;
        box-sizing: border-box;
        padding-left: 20px;
        line-height: 28px;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        cursor: pointer;
        color: $text_light;
        .inline-block {
            display: flex;
            justify-content: center;
            align-items: center;
        }
        .arrow_icon {
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .pui-selector-content {
            position: relative;
            width: 100%;
            box-sizing: border-box;
            z-index: 2;
            padding: 5px 0;
            .pui-selector-content_list {
                .pui-selector-content_item {
                    display: flex;
                    padding: 5px 17px;
                    font-size: 12px;
                    justify-content: center;
                    white-space: nowrap;
                    &:hover {
                        background: $primary-fill;
                        &.active-item {
                            .content-label {
                                color: #fff;
                            }
                        }
                    }
                    &.active-item {
                        color: $primary-fill;
                    }
                    .content-icon {
                        display: flex;
                    }
                    .content-label {
                        font-size: 14px;
                        align-self: center;
                        white-space: nowrap;
                    }
                }
            }
        }
    }
    .win-tools {
        height: 100%;
        margin-left: 20px;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        .pui-icon {
            font-size: 16px;
            padding: 0 12px;
            height: 100%;
            display: flex;
            justify-content: center;
            align-items: center;
            transition: background-color 0.3s ease-in-out;
            cursor: pointer;
            &:hover {
                background: $border-deep_light;
            }
        }
    }
}

@mixin header-right-dark {
    .pui-switch {
        .pui-switch_content {
            .pui-switch_label {
            }
        }
    }
    .system-selector {
        color: $text_dark;
        .pui-selector-content {
            .pui-selector-content_list {
                .pui-selector-content_item {
                    &:hover {
                        background: $border-deep_dark;
                        .content-label {
                            color: $primary-fill;
                        }
                        &.active-item {
                            .content-label {
                                color: $primary-fill;
                            }
                        }
                    }
                    &.active-item {
                        .content-label {
                            color: $primary-fill;
                        }
                    }
                    .content-icon {
                        display: flex;
                    }
                    .content-label {
                        color: $text_dark;
                    }
                }
            }
        }
    }
    .win-tools {
        .pui-icon {
            &:hover {
                background: $border-deep_dark;
            }
        }
    }
}